/** 
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package com.tompai.common.domain;

import java.util.List;

/**
 * 表数据
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019年12月20日 上午12:02:55
 */
public class TableDO {
	// 表的名称
	private String tableName;
	// 表的备注
	private String comments;
	// 表的主键
	private ColumnDO pk;
	// 表的列名(不包含主键)
	private List<ColumnDO> columns;

	// 类名(第一个字母大写)，如：sys_user => SysUser
	private String className;
	// 类名(第一个字母小写)，如：sys_user => sysUser
	private String classname;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public ColumnDO getPk() {
		return pk;
	}

	public void setPk(ColumnDO pk) {
		this.pk = pk;
	}

	public List<ColumnDO> getColumns() {
		return columns;
	}

	public void setColumns(List<ColumnDO> columns) {
		this.columns = columns;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getClassname() {
		return classname;
	}

	public void setClassname(String classname) {
		this.classname = classname;
	}

	@Override
	public String toString() {
		return "TableDO{" + "tableName='" + tableName + '\'' + ", comments='" + comments + '\'' + ", pk=" + pk
				+ ", columns=" + columns + ", className='" + className + '\'' + ", classname='" + classname + '\''
				+ '}';
	}
}
